<?php
class User extends AppModel 
{
	var $name = 'User';
	
	function checkLogin($username ,$password)
	{
		print 'username="' .$username .'" AND password="' .AuthComponent::password($password);
		exit();
		$user = $this->field(null ,'username="' .$username .'" AND password="' .AuthComponent::password($password));
		if (!empty($user))
		{
			return $user;
		} else {
			return null;
		}
	}
}
?>